package model;

import java.util.Random;

public class FilePiece {
	
	private final double MIN_DATA_SIZE = 500;
	private final double MAX_DATA_SIZE = 600;
	private double dataSize;
	private int number;
	
	public FilePiece(int number){
		Random random = new Random();
		dataSize = random.nextDouble()*(MAX_DATA_SIZE - MIN_DATA_SIZE) + MIN_DATA_SIZE;
		this.number = number;
	}
	
	public double getDataSize(){
		return dataSize;
	}
	
	public int getNumber(){
		return number;
	}

}
